{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/order/index')}">订单管理</a></li>
            <li class="layui-this">订单详情</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container">
                    <div class="layui-form-item">
                        <label class="layui-form-label">账号</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$order.u_email}"    class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">订单编号</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$order.o_order_num}"    class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值类型</label>
                        <div class="layui-input-block">
                            {if condition="$order['o_type'] eq 1"}
                            <input type="text"  value="微信" class="layui-input" disabled="disabled">
                            {else /}
                            <input type="text"  value="支付宝" class="layui-input" disabled="disabled">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值金额（人民币）</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$order.o_money_rmb}"   class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">充值金额（美元）</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$order.o_money_dollar}"   class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">订单状态</label>
                        <div class="layui-input-block">
                            {if condition="$order['o_status'] eq 1"}
                            <input type="text"  value="待确认" class="layui-input" disabled="disabled">
                            {/if}
                            {if condition="$order['o_status'] eq 2"}
                            <input type="text"  value="确认到账" class="layui-input" disabled="disabled">
                            {/if}
                            {if condition="$order['o_status'] eq 3"}
                            <input type="text"  value="未到账已拒绝" class="layui-input" disabled="disabled">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">订单说明</label>
                        <div class="layui-input-block">
                            <textarea  cols="95" rows="5" disabled="disabled">{$order.o_remark}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">下单时间</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$order.o_create_time}"   class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核时间</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$order.o_update_time}"   class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <!--订单ID-->
                    <input type="hidden" id="o_id" value="{$order.o_id}">
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            {if condition="$order['o_status'] eq 1"}
                                <a href="{:url('admin/order/update',['o_id'=>$order['o_id'],'o_uid'=>$order['o_uid'],'o_money_dollar'=>$order['o_money_dollar'],'o_status' => 2])}" class="layui-btn layui-btn-normal layui-btn-mini ajax-confim">确认</a>
                                <a href="{:url('admin/order/update',['o_id'=>$order['o_id'],'o_uid'=>$order['o_uid'],'o_money_dollar'=>$order['o_money_dollar'],'o_status' => 3])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-confim">拒绝</a>
                            {/if}
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
{/block}
{block name="js"}
<!--<script src="__JS__/kindeditor/kindeditor.config.js"></script>-->
<!--<script src="__JS__/kindeditor/kindeditor-all-min.js"></script>-->
<script src="__JS__/ueditor/ueditor.config.js"></script>
<script src="__JS__/ueditor/ueditor.all.min.js"></script>
{/block}
{block name="script"}
<script>
</script>
{/block}